<?php $this->load->view("general/header");?>
<div id="customer" class="page_">
    <div class="form">              
        <div class="form_header">Tambah Data Supir</div>
        <div class="form_header_right"></div>
        
        <div class="form_header_right1"></div>
        <div class="content_dataS">
        <form method="post" action="<?php echo site_url("driver/index");?>">
           <div class="content_dataR">
           		<div class="row">
                    <div class="col1"></div>
                    
                </div>
                <div class="row">
                    <div class="col1"></div>
                    
                </div>
                
                <div class="row">
                    <div class="col1">Telepon Emergency</div>
                    <div class="col2"><input type="text" name="emertelp" /> 
                        <div class="errorField"><?php echo form_error("emertelp");?></div>
                    </div>
                </div>
               
              
                <div class="row">
                    <div class="col1">No KTP</div>
                    <div class="col2"><input type="text" name="no_ktp"/> 
                        <div class="errorField"><?php echo form_error("no_ktp");?></div>
                    </div>
                </div>
                <div class="row">
                    <div class="col1">Umur</div>
                    <div class="col2"><input type="text" name="umur"  /> 
                        <div class="errorField"><?php echo form_error("umur");?></div>
                    </div>
                </div>
                 <div class="row">
            		<div class="col1">Tarif Harian</div>
                	<div class="col2"><input type="text" name="gaji" /> 
                		<div class="errorField"><?php echo form_error("gaji");?></div>
               		</div>
				</div>
                 <div class="row">
            		<div class="col1">Tarif Mingguan</div>
                	<div class="col2"><input type="text" name="gajiminggu" /> 
                		<div class="errorField"><?php echo form_error("gajiminggu");?></div>
               		</div>
				</div>
                 <div class="row">
            		<div class="col1">Tarif Bulanan</div>
                	<div class="col2"><input type="text" name="gajibulan" /> 
                		<div class="errorField"><?php echo form_error("gajibulan");?></div>
               		</div>
				</div>
                 <div class="row">
            		<div class="col1">Tarif 6Bulanan</div>
                	<div class="col2"><input type="text" name="gaji6" /> 
                		<div class="errorField"><?php echo form_error("gaji6");?></div>
               		</div>
				</div>
                 <div class="row">
            		<div class="col1">Tarif Tahunan</div>
                	<div class="col2"><input type="text" name="gajitahun" /> 
                		<div class="errorField"><?php echo form_error("gajitahun");?></div>
               		</div>
				</div>
           		
           </div>
           <div class="row">
            	<strong>Bertanda * harus diisi</strong>
               
			</div>
           <div class="row">
            	<div class="col1">Staff</div>
                <div class="col2"><?php echo get_username($this->session->userdata("user_id"));?> 
                	
                </div>
			</div>
            <div class="row">
            	<div class="col1">Kategori</div>
                <div class="col2">
                	<select id="kategori" name="kategori">
                    	<option value="1" selected="selected">1</option>
                        <option value="2">2</option>
                        <option value="3">3</option>
                        <option value="4">4</option>
                        <option value="5">5</option>                    
                    </select> 
                </div>
			</div>
            <div class="row">
            	<div class="col1">Status</div>
                <div class="col2">
                	<select id="status" name="status">
                    	<option value="permanen" selected="selected">Permanen</option>
                        <option value="oncall">On Call</option>
                        <option value="freelance">Freelance</option>                    
                    </select> 
                </div>
			</div>
            <div class="row">
            	<div class="col1">Nama Depan *</div>
                <div class="col2"><input type="text" name="nama_supir" /> 
                	<div class="errorField"><?php echo form_error("nama_supir");?></div>
                </div>
			</div>
            <div class="row">
            	<div class="col1">Nama Belakang</div>
                <div class="col2"><input type="text" name="namabel" /> 
                	<div class="errorField"><?php echo form_error("namabel");?></div>
                </div>
			</div>
            <div class="row">
            	<div class="col1">Tempat Lahir</div>
                <div class="col2"><input type="text" name="temlahir" /> 
                	<div class="errorField"><?php echo form_error("temlahir");?></div>
                </div>
			</div>
            <div class="row">
            	<div class="col1">Tanggal Lahir</div>
                <div class="col2">
                	Tgl
                	<select id="tgl" name="tgl" style="width:20%">
                    	<?php for($i=1;$i<32;$i++){?>
                        	<option value="<?php if($i<10){echo 0;} echo $i;?>"><?php echo $i;?></option>
						<?php }?>                   
                    </select>
                    Bln 
                    <select id="bln" name="bln" style="width:20%">
                    	<?php for($i=1;$i<13;$i++){?>
                        	<option value="<?php if($i<10){echo 0;} echo $i;?>"><?php  echo $i;?></option>
						<?php }?>                   
                    </select>
                    
                    Thn
                    <select id="thn" name="thn" style="width:26%">
                    	<?php for($i=date("Y")-80;$i<date("Y")-10;$i++){?>
                        	<option value="<?php if($i<10){echo 0;} echo $i;?>"><?php if($i<10){echo 0;} echo $i;?></option>
						<?php }?>                   
                    </select>
                    
                </div>
			</div>
        	
            <div class="row">
                    <div class="col1">Alamat</div>
                    <div class="col2"><input type="text" name="alamat" /> 
                       
                    </div>
            </div>
            	
            <div class="row">
                <div class="col1">Email</div>
                <div class="col2"><input type="text" name="email" /> 
                    
                </div>
            </div>
            <div class="row">
                <div class="col1">HP*</div>
                <div class="col2"><input type="text" name="no_telp" /> 
                    <div class="errorField"><?php echo form_error("no_telp");?></div>
                </div>
            </div>
            <div class="row">
                <div class="col1">Telepon Rumah</div>
                <div class="col2"><input type="text" name="telp_rmh" /> 
                    <div class="errorField"><?php echo form_error("telp_rmh");?></div>
                </div>
            </div>
            
        </div>
        <div class="title" align="right">
          	<input type="submit" name="btnSave" value="Save" class="button_red" />
        </div>
        <div class="success"><?php echo (isset($success))?$success:"";?>&nbsp;</div>
        </form>
    </div>
    
</div>
<?php $this->load->view("general/footer");?>